package com.qp.basics.estivate.mysql;

import com.qp.basics.estivate.Query;
import com.qp.basics.estivate.jdbc.QueryJdbc;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class QueryMySql extends QueryJdbc implements Query {
	private static final Log logger = LogFactory.getLog(QueryMySql.class);

	public QueryMySql(String sql) {
		super(sql);
	}

	public String composePaginationSql(String sql) {
		return "select * from (" + sql + ") as _a limit " + this.firstResult
				+ "," + this.maxResults;
	}

}
